<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/templateLogin.xhtml">
	<ui:define name="conteudo">
		<center>
		<h1>Cadastror Currículo</h1>
		</center>
		<h:form>
			<p:panel id="panel"
				header="Cadastro Curriculo ( * Obrigatórios ): "
				style="margin-bottom:10px;">
			 <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" /> 
				<h:panelGrid columns="2" cellpadding="10">
					
					<h:outputLabel for="nome" value="Nome *" />
					<p:inputText id="nome" value="#{curriculoController.curriculo.nomeCompleto}"
						label="nome" size="40" />
					<h:outputLabel for="Habilidade" value="Habilidade *" />
					<p:inputTextarea id="Habilidade" value="#{curriculoController.curriculo.habilidades}"
						label="Habilidade" style="width:100%" />
					<h:outputLabel for="ExperienciasAnterioes" value="Experiencias Anterioes" />
					<p:inputTextarea id="ExperienciasAnterioes" value="#{curriculoController.curriculo.experienciaAnterior}"
						label="Experiencias Anterioes" style="width:100%" />
					<h:outputLabel for="Formação" value="Formação *" />
					<p:inputTextarea id="Formação" value="#{curriculoController.curriculo.formacao}"
						label="Formação" style="width:100%" />
					<h:outputLabel for="Cursos" value="Cursos *"></h:outputLabel>
					<p:inputTextarea value="#{curriculoController.curriculo.cursos}" label="Cursos" style="width:100%"/>
										<p:commandButton value="Inserir" id="btInserirCurriculo"
						actionListener="#{curriculoController.addCurriculo()}" update="panel"  />

						
				</h:panelGrid>
			</p:panel>
		</h:form>
		
		
	</ui:define>
</ui:composition>

</html>